package com.tjh.springbootapi.实例demo;

import com.tjh.springbootapi.entity.Menu;
import com.tjh.springbootapi.service.MenuService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * Create by koala on 2020-03-21
 */
@SpringBootTest
public class UseMybatisPlus {

    @Autowired
    MenuService menuService;

    @Test
    public void testLambdaQueryWrapper() {
        List<Menu> menus = menuService.findAllActive();
        System.out.println(menus);
    }

}
